<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Topics extends CI_Controller {
	
	function __construct() {
		parent::__construct();
		$this->load->library('ion_auth');
		$this->load->model('common_model');
		$this->load->database();
		$this->load->helper('language');
	}

	/**
	 * index function
	 * index function containing the topics view page
	 */
	public function index()	{
		$data['title'] = "Get Top Five";
		$data['copyright'] = "Samrat Khan";
		
		$data['topiclist'] = $this->common_model->getAllRows($this->common_model->_topicsTable);

		$this->load->view('layout/header', $data);
		$this->load->view('topics', $data);
		$this->load->view('layout/footer', $data);
	}
	
	
}
